<template>
    <n-form ref="formRef" :model="formValue" label-placement="left" :label-width="80" :inline="true">
        <n-form-item label="角色编码" path="code">
            <n-input v-model:value="formValue.code" />
        </n-form-item>
        <n-form-item label="角色名称" path="name">
            <n-input v-model:value="formValue.name" />
        </n-form-item>
        <n-form-item label="状态" path="status">
            <n-select v-model:value="formValue.status" :options="options" />
        </n-form-item>
    </n-form>
</template>

<script setup lang="ts">
const formValue = ref<Recordable>({})

const options = [
    {
        label: "启用",
        value: "0"
    },
    {
        label: "禁用",
        value: "1"
    }
]
</script>
